package com.WISSC.mapper;

import com.WISSC.bean.IndividualEvent;
import com.WISSC.bean.Team;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 战队信息表 Mapper 接口
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
public interface TeamMapper extends BaseMapper<Team> {
    /**
     *
     * @param map
     * @return 战队赛事登录
     */
    List<Team> login(@Param("map") Map map);

    List<Team> selectByName(@Param("name") String name);

    /**
     *
     * @param paramMap
     * @return 战队搜索
     */
    List<Team> selectTeam(@Param("map")Map paramMap,@Param("admin")boolean admin);
    Integer countTeam(@Param("map")Map paramMap,@Param("admin")boolean admin);



    //战队赛事积分查询
    List<Team> selectMyPage(@Param("param")Map map);
    Integer countMyPage(@Param("param")Map map);

    //查新信息
    Team select(@Param("teamName")String teamName,@Param("city") String city);

     //国家排名
     Team country(@Param("city") String city,@Param("teamName") String teamName);
    /**
     * @param id
     * @return 战队编辑回显city
     */
    List<Team> getTeamCity(@Param("id") Long id);

    //战队查询
    List<Team> selectTeamName(@Param("param")Map map);
    Integer countTeamName(@Param("param")Map map);


    List<Team> getTeam(@Param("teamName")String teamName);
}
